package hello.config;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @description
 * 
 * @author Administrator - JingjingMa
 * @Email <a href="majinding888@163.com">majinding888@163.com</a>
 * @date 2016-12-24 下午7:57:45
 * @version 6.0
 * @DevTool Created By Eclipse 4.3
 * 
 */
@Configuration
public class MyConfig implements Serializable {

	private static final long serialVersionUID = 1L;

	@Value("${name}")
	private String name;

	@Value("${my.age}")
	private Integer age;

	@Value("${my-kongfu}")
	private String kongfu;

	public static String info;

	public String getInfo() {
		return info;
	}

	@Value("${my.info}")
	public void setInfo(String info) {
		MyConfig.info = info;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getKongfu() {
		return kongfu;
	}

	public void setKongfu(String kongfu) {
		this.kongfu = kongfu;
	}

	@Override
	public String toString() {
		return "MyConfig [name=" + name + ", age=" + age + ", kongfu=" + kongfu + "]";
	}

}
